package com.imooc.collection

object MapApp extends App{

  val map = Map("PK" -> 18,"ZS" -> 13)
  println(map("PK"))

  val b = scala.collection.mutable.Map("ZS" -> 30 , "PK" -> 18 )
  println(b("ZS"))

  b("ZS") = 16
  println(b("ZS"))

  b.get("PK").get

  println(b.getOrElse("PK",9))

  for((key,value) <- b){
    println(key + ":" + value)
  }



}

